import request from '@/utils/request'
let lawServicePlatform = "lawServicePlatform";

// 获取合同表
export function getContractList(data) {
    return request({
        url: "/lawServicePlatform/contract/getContractList",
        method: 'post',
        data
    })
}

// 通过合同名获取合同表
export function getContractByName(data) {
    return request({
        url: "/lawServicePlatform/contract/getContractByName?name="+data.name,
        method: 'post',
        data
    })
}


// 通过合同类型获取合同表
export function getContractListByType(data) {
    return request({
        url: "/lawServicePlatform/contract/getContractListByType?type="+data.type,
        method: 'post',
        data
    })
}



//获取已上架的合同
export function getContractListOnShelves(data,type) {
    return request({
        url: "/lawServicePlatform/contract/getContractListOnShelves?type="+type,
        method: 'post',
        data
    })
}

